package com.itheima.tlias08_14.service;

import com.itheima.tlias08_14.annotation.Log;
import com.itheima.tlias08_14.dto.SelectStudentDTO;
import com.itheima.tlias08_14.entity.Student;
import com.itheima.tlias08_14.paramobject.InsertStudent;
import com.itheima.tlias08_14.paramobject.SelectByIdStudent;
import com.itheima.tlias08_14.paramobject.SelectStudentPO;
import com.itheima.tlias08_14.paramobject.UpdateStudentPO;
import com.itheima.tlias08_14.utils.ResultUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentService {


    ResultUtil selectStudent(SelectStudentPO sp);

    @Log
    int hatchDeleteById( List<Integer> ids);

    @Log
    int insertStudent( InsertStudent student);

    SelectStudentDTO selectStudentById(Integer id);

    @Log
    int updateStudent( UpdateStudentPO usPO);

    @Log
    int updateScore( Integer id,Integer score);

}
